<script>
<% if !defined?(secondrun) or !secondrun %>
Event.observe(window, 'load', function() {
<% end %>
  flashembed("videoPlayer<%= videoid %>",
  {
    src:'/flash/flowplayer.swf',
    width: 480,
    height: 360,
    wmode: 'transparent'
  },
  {
    config: {
      playList: [
        { url: 'http://media.tecnobrat.com/<%= image %>', overlayId: 'play' },
        { url: 'http://media.tecnobrat.com/<%= video %>' },
        { overlayId: 'play' }
      ],
        autoPlay: false,
        showStopButton: true,
        autoRewind: false,
        autoBuffering: false,
        initialScale: 'scale'
      }
    }
  );
<% if !defined?(secondrun) or !secondrun %>
});

<% end %>
</script>
<div id="videoPlayer<%= videoid %>"></div>
